Release 10.1A: OpenEdge Development:
Programming Interfaces
Creating a named pipe
To create a UNIX named pipe, use the
mknodcommand on the command line or themknod()system call from a C program. The two techniques produce the same results. The examples in this chapter use the command-line technique.Once you create a named pipe, its characteristics are similar to an ordinary file. For example, it is located in a directory, has a pathname, and exists until you delete it.
The
mknodcommand has more than one form. This is the syntax for the form that creates a named pipe:
The
named-pipe-identifieris the pathname of the named pipe you want to create.For example, to create a named pipe called
mypipein the current directory, type the following command:
The following C function shows how to use the
mknod()system call to create a named pipe:
For more information on
mknodormknod(), see your UNIX system documentation.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |